package com.tfleo.mealssenger.object;

import com.tfleo.mealssenger.Main;


public class News {
	public static final String IMAGE_PATH = Main.SERVER_URL + "img/user/";
	
	public final int userId;
	public final String userName;
	public final int storyId;
	public final int storyType;
	public final String storyName;
	public final String date;
	public final String userImageUrl;
	
	public News(int userId, String userName, String userImageUrl, int storyId, 
			String storyName, int storyType, String date) {
		this.userId = userId;
		this.userName = userName;
		this.storyId = storyId;
		this.storyType = storyType;
		this.storyName = storyName;
		this.date = date.replace('-', '/');
		this.userImageUrl = IMAGE_PATH + userImageUrl;
	}
}
